package com.itheima.param;

public class ParamDemo2 {
    public static void main(String[] args) {
        int[] arr = {10, 20, 30};
        change(arr);
        System.out.println("main方法：" + arr[1]); // 222
    }

    public static void change(int[] arr){
        System.out.println(arr[1]); // 20
        arr[1] = 222;
        System.out.println(arr[1]); // 222
    }
}
